<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单奇怪元素生成器</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            color: #333;
            padding: 20px;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: #ff6b6b;
        }
        
        .description {
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            flex-wrap: wrap;
        }
        
        button {
            padding: 10px 20px;
            background-color: #4ecdc4;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        button:hover {
            background-color: #3a9d95;
            transform: translateY(-2px);
        }
        
        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .card {
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
        }
        
        .card h2 {
            color: #ff6b6b;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #ffe66d;
        }
        
        .weird-shapes {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
            justify-content: center;
        }
        
        .weird-shape {
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
        }
        
        .bouncing-text {
            font-size: 1.5rem;
            font-weight: bold;
            text-align: center;
            margin: 15px 0;
            animation: bounce 1.5s infinite alternate;
        }
        
        @keyframes bounce {
            from { transform: translateY(0); }
            to { transform: translateY(-15px); }
        }
        
        .color-changing-box {
            height: 120px;
            border-radius: 10px;
            margin: 15px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            animation: colorChange 5s infinite alternate;
        }
        
        @keyframes colorChange {
            0% { background-color: #ff6b6b; }
            25% { background-color: #4ecdc4; }
            50% { background-color: #ffe66d; }
            75% { background-color: #ff9a9e; }
            100% { background-color: #6a11cb; }
        }
        
        .spinning-element {
            width: 80px;
            height: 80px;
            margin: 15px auto;
            background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
            border-radius: 50%;
            animation: spin 3s linear infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .random-text {
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 10px;
            margin-top: 10px;
            min-height: 100px;
            font-style: italic;
        }
        
        .weird-list {
            padding-left: 20px;
            margin-top: 10px;
        }
        
        .weird-list li {
            margin-bottom: 8px;
            padding: 5px;
        }
        
        .crazy-button {
            display: block;
            width: 100%;
            padding: 12px;
            margin-top: 15px;
            background: linear-gradient(135deg, #ff6b6b, #ff9a9e);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .crazy-button:hover {
            transform: scale(1.05);
        }
        
        footer {
            text-align: center;
            margin-top: 40px;
            padding: 15px;
            color: #666;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
        }
        
        @media (max-width: 768px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>简单奇怪元素生成器</h1>
            <p class="description">这个页面包含一些有趣但简单的奇怪元素，点击按钮可以生成新内容。</p>
        </header>    
        
        <div class="controls">
            <button id="generate-all">生成所有元素</button>
            <button id="change-colors">改变颜色</button>
        </div>
        
        <div class="content-grid">
            <div class="card">
                <h2>奇怪形状</h2>
                <p>点击形状可以改变它们的颜色：</p>
                <div class="weird-shapes" id="weird-shapes"></div>
            </div>
            
            <div class="card">
                <h2>弹跳文字</h2>
                <p>踊り子</p>
                <div class="bouncing-text" id="bouncing-text">你是个寄吧！</div>
            </div>
            
            <div class="card">
                <h2>变色盒子</h2>
                <p>我是个三千</p>
                <div class="color-changing-box">何意味？</div>
            </div>
            
            <div class="card">
                <h2>旋转元素</h2>
                <p>回り出したあの子と僕の未来が</p>
                <div class="spinning-element">旋转中</div>
            </div>
            
            <div class="card">
                <h2>随机奇怪文本</h2>
                <p>点击按钮生成奇怪的文本：</p>
                <div class="random-text" id="random-text"></div>
                <button class="crazy-button" id="generate-text">生成新文本</button>
            </div>
            
            <div class="card">
                <h2>奇怪列表</h2>
                <p>一些奇怪的项目：</p>
                <ul class="weird-list" id="weird-list"></ul>
            </div>
        </div>
        
        <footer>
            <p>© 2023 简单奇怪元素生成器</p>
        </footer>
    </div>

    <script>
        // 生成随机颜色
        function getRandomColor() {
            const colors = ['#ff6b6b', '#4ecdc4', '#ffe66d', '#ff9a9e', '#6a11cb', '#2575fc'];
            return colors[Math.floor(Math.random() * colors.length)];
        }
        
        // 生成奇怪形状
        function generateWeirdShapes() {
            const container = document.getElementById('weird-shapes');
            container.innerHTML = '';
            
            for (let i = 0; i < 6; i++) {
                const shape = document.createElement('div');
                shape.className = 'weird-shape';
                shape.style.backgroundColor = getRandomColor();
                
                // 随机形状
                const shapeType = Math.floor(Math.random() * 3);
                if (shapeType === 0) {
                    shape.style.borderRadius = '50%';
                    shape.textContent = '乃万';
                } else if (shapeType === 1) {
                    shape.style.borderRadius = '20%';
                    shape.textContent = '久依';
                } else {
                    shape.style.borderRadius = '30% 70% 70% 30% / 30% 30% 70% 70%';
                    shape.textContent = '迪克';
                }
                
                // 点击形状改变颜色
                shape.addEventListener('click', function() {
                    this.style.backgroundColor = getRandomColor();
                });
                
                container.appendChild(shape);
            }
        }
        
        // 生成随机文本
        function generateRandomText() {
            const words = ['香蕉会飞', '火鸡味锅巴', '会说话的猫', "钟离假死","八级大狂风",
                          '总导演丁亮', '我要打上海Major', '空悲切', '时间倒流', '梦境现实',"我要玩旮旯给木"];
            
            let text = '';
            const sentenceCount = 2;
            
            for (let i = 0; i < sentenceCount; i++) {
                const wordCount = Math.floor(Math.random() * 4) + 3;
                for (let j = 0; j < wordCount; j++) {
                    text += words[Math.floor(Math.random() * words.length)];
                    if (j < wordCount - 1) text += '，';
                }
                text += '。';
                if (i < sentenceCount - 1) text += ' ';
            }
            
            document.getElementById('random-text').textContent = text;
        }
        
        // 生成奇怪列表
        function generateWeirdList() {
            const listItems = [
                '在沈阳大街别让我逮到你',
                '装逼我让你飞起来',
                '原来你也玩原神',
                '我要玩迷你世界',
                '我真求你了',
                '别装逼',
                '求也得排队'
            ];
            
            const listContainer = document.getElementById('weird-list');
            listContainer.innerHTML = '';
            
            const itemCount = 5;
            
            for (let i = 0; i < itemCount; i++) {
                const li = document.createElement('li');
                li.textContent = listItems[Math.floor(Math.random() * listItems.length)];
                listContainer.appendChild(li);
            }
        }
        
        // 改变弹跳文字
        function changeBouncingText() {
            const texts = [
                '我是个傻逼',
                'dick是个唐逼',
                'dick想吃我的大左轮',
                'dick你是不是不想干了'
            ];
            
            const bouncingText = document.getElementById('bouncing-text');
            bouncingText.textContent = texts[Math.floor(Math.random() * texts.length)];
            bouncingText.style.color = getRandomColor();
        }
        
        // 改变所有卡片的颜色
        function changeCardColors() {
            const cards = document.querySelectorAll('.card');
            cards.forEach(card => {
                card.style.border = `2px solid ${getRandomColor()}`;
            });
        }
        
        // 页面加载时初始化
        document.addEventListener('DOMContentLoaded', function() {
            generateWeirdShapes();
            generateRandomText();
            generateWeirdList();
            
            // 设置弹跳文字定时变化
            setInterval(changeBouncingText, 3000);
            
            // 添加按钮事件监听器
            document.getElementById('generate-all').addEventListener('click', function() {
                generateWeirdShapes();
                generateRandomText();
                generateWeirdList();
            });
             
            document.getElementById('change-colors').addEventListener('click', changeCardColors);
            
            document.getElementById('generate-text').addEventListener('click', generateRandomText);
        });
    </script>
</body>
</html> 